//
//  UsView.m
//  BeanTrip
//
//  Created by houlei on 15/6/29.
//  Copyright (c) 2015年 PandaGroup. All rights reserved.
//

#import "UsView.h"

#define WIDTH (self.frame.size.width)
#define HEIGHT (self.frame.size.height)

@implementation UsView

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubViews];
    }
    return self;
}
-(void)createSubViews
{
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, WIDTH - 20, HEIGHT/3*2)];
    label.text = @"豆游是由PandaGroup研发的一款以旅游为主题的软件。PandaGroup是一个典型的软件开发团队，具有优秀的开发人员。PandaGroup的开发人员都富有团队合作精神和熟练的iOS开发技术，使PandaGroup蓬勃发展。";
    label.numberOfLines = 0;
    [self addSubview:label];
    [label release];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
